﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Page.Master" AutoEventWireup="true" CodeBehind="Lista.aspx.cs" Inherits="AvaliacaoWeb.Lista" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Content" runat="server">

    <h3><asp:Label runat="server" ID="lblTitulo"></asp:Label></h3>

    <asp:GridView CssClass="table table-striped table-bordered" runat="server" ID="dtGrid" 
        AutoGenerateColumns="False" 
        EmptyDataText="Nenhum registro encontrado" GridLines="None" 
        ShowHeaderWhenEmpty="True" onrowdatabound="dtGrid_RowDataBound">
        <Columns>
            <asp:TemplateField ShowHeader="false">                
                <ItemTemplate> 
                    <asp:Label ClientIDMode="Static"  ID="avaliadodis" runat="server" Text='<%# Bind("avaliadodis")%>'></asp:Label>                    
                    <asp:TextBox ClientIDMode="Static" ID="avaliado" runat="server" style="display:none;"  Text='<%# Bind("avaliado") %>'></asp:TextBox>                    
                    <asp:TextBox ClientIDMode="Static" ID="numava" runat="server" style="display:none;"  Text='<%# Bind("numava") %>'></asp:TextBox>                    
                    </ItemTemplate>

            </asp:TemplateField>
            <asp:HyperLinkField ItemStyle-HorizontalAlign="Center" DataNavigateUrlFields="numava, avaliado" ItemStyle-Width="70px"  ControlStyle-CssClass="btn btn-info"   
                        DataNavigateUrlFormatString="Avaliar.aspx?numava={0}&avaliado={1}" 
                        Text="Avaliar" />
        </Columns>
        
    </asp:GridView>
    <div class="control-group">
        <div class="controls " style="text-align: center;" >            
            <asp:Button runat="server" clientidmode="Static" ID="btnGravar" type="submit" class="btn btn-success" 
                Text="Finalizar Avaliação" onclick="btnGravar_Click" />

            <asp:Button runat="server" clientidmode="Static" ID="btnVoltar" type="submit" class="btn btn-danger" 
                Text="Voltar" onclick="btnVoltar_Click"  />
        </div>
    </div>
</asp:Content>
